package cn.zaichi.edu.excelcommon.entity;

import java.util.List;
import java.util.Map;

import cn.zaichi.edu.excelcommon.constants.ImportResultState;

/**
 * 导入结果
 */
public class ImportResult {

    //状态 默认全部成功
    private int state=ImportResultState.onSuccess;
    //表头
    List<ImportTitleEntity> titleEntityList;
    //数据存放
    Map<String,List<?>> dataMap;
    //错误数据
    List<List<ErrorCellEntity>> errorCellEntitieList;

    public ImportResult(List<ImportTitleEntity> titleEntityList, Map<String, List<?>> dataMap, List<List<ErrorCellEntity>> errorCellEntitieList) {
        this.titleEntityList = titleEntityList;
        this.dataMap = dataMap;
        this.errorCellEntitieList = errorCellEntitieList;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public List<List<ErrorCellEntity>> getErrorCellEntitieList() {
        return errorCellEntitieList;
    }

    public void setErrorCellEntitieList(List<List<ErrorCellEntity>> errorCellEntitieList) {
        this.errorCellEntitieList = errorCellEntitieList;
    }

    public List<ImportTitleEntity> getTitleEntityList() {
        return titleEntityList;
    }

    public void setTitleEntityList(List<ImportTitleEntity> titleEntityList) {
        this.titleEntityList = titleEntityList;
    }

    public Map<String, List<?>> getDataMap() {
        return dataMap;
    }

    public void setDataMap(Map<String, List<?>> dataMap) {
        this.dataMap = dataMap;
    }
}
